// const child = require('child_process')
//
// child.exec(`C:\ginx-1.13.7\ginx.exe`, (err, stdout, stderr) => {
//     console.log(err, stdout, stderr)
//
// })
const path = require('path')
//dll/exe/xxx.exe为相对于文件根目录的地址
let exePath = path.resolve('C:/nginx-1.13.7/nginx.exe')
//两种方式均可调起exe
require('child_process').exec('start '+exePath)
// require('child_process').spawn(exePath,["2","6"])


